const mongoose = require('mongoose')

const Image = mongoose.model('Image')


const popular = () =>
  Image.find({},{filename:1,_id:1}).sort({likes:-1}).limit(1)
  


module.exports = popular
